package xyz.dagoose.contacts;

import java.util.Scanner;
public class Arraydemo {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		System.out.println("输入学生人数");
		int number = scan.nextInt();
		int[] scores = new int[number];
		int maxScore = 0;
		System.out.println("分别输入学生成绩");
		for (int i=0;i < number;i++){
			scores[i] = scan.nextInt();
			maxScore = (maxScore < scores[i])? scores[i]:maxScore;
		}
	}
}
